package com.simplework.business.kind.dao;

import com.simplework.business.common.shiro.pojo.UserPojo;
import com.simplework.business.iframework.dao.CrudDao;
import com.simplework.business.iframework.mybatis.dynamic.DBType;
import com.simplework.business.iframework.mybatis.dynamic.annotation.TargetDataSource;
import com.simplework.business.kind.pojo.User;

/**
 * @Author Brant Liu
 * @Desc TODO 
 * @MailTo lbf1988@qq.com
 * @Date 2017-09-07 19:27
 */
public interface UserDao extends CrudDao<User> {
    @TargetDataSource(DBType.slave)
    UserPojo queryByMobile(String mobile);

    @TargetDataSource(DBType.slave)
    UserPojo queryByUsername(String username);
}